package com.yipei.business.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yipei.business.domain.MlTradeEntrustOrder;
import com.yipei.business.mapper.MlTradeEntrustOrderMapper;
import com.yipei.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yipei.business.mapper.MlAccountMessageMapper;
import com.yipei.business.domain.MlAccountMessage;
import com.yipei.business.service.IMlAccountMessageService;

/**
 * 账户消息Service业务层处理
 * 
 * @author yipei
 * @date 2024-12-23
 */
@Service
public class MlAccountMessageServiceImpl  extends ServiceImpl<MlAccountMessageMapper, MlAccountMessage> implements IMlAccountMessageService
{
    @Autowired
    private MlAccountMessageMapper mlAccountMessageMapper;

    /**
     * 查询账户消息
     * 
     * @param id 账户消息主键
     * @return 账户消息
     */
    @Override
    public MlAccountMessage selectMlAccountMessageById(Long id)
    {
        return mlAccountMessageMapper.selectMlAccountMessageById(id);
    }

    /**
     * 查询账户消息列表
     * 
     * @param mlAccountMessage 账户消息
     * @return 账户消息
     */
    @Override
    public List<MlAccountMessage> selectMlAccountMessageList(MlAccountMessage mlAccountMessage)
    {
        return mlAccountMessageMapper.selectMlAccountMessageList(mlAccountMessage);
    }

    /**
     * 新增账户消息
     * 
     * @param mlAccountMessage 账户消息
     * @return 结果
     */
    @Override
    public int insertMlAccountMessage(MlAccountMessage mlAccountMessage)
    {
        mlAccountMessage.setCreateTime(DateUtils.getNowDate());
        return mlAccountMessageMapper.insertMlAccountMessage(mlAccountMessage);
    }

    /**
     * 修改账户消息
     * 
     * @param mlAccountMessage 账户消息
     * @return 结果
     */
    @Override
    public int updateMlAccountMessage(MlAccountMessage mlAccountMessage)
    {
        mlAccountMessage.setUpdateTime(DateUtils.getNowDate());
        return mlAccountMessageMapper.updateMlAccountMessage(mlAccountMessage);
    }

    /**
     * 批量删除账户消息
     * 
     * @param ids 需要删除的账户消息主键
     * @return 结果
     */
    @Override
    public int deleteMlAccountMessageByIds(Long[] ids)
    {
        return mlAccountMessageMapper.deleteMlAccountMessageByIds(ids);
    }

    /**
     * 删除账户消息信息
     * 
     * @param id 账户消息主键
     * @return 结果
     */
    @Override
    public int deleteMlAccountMessageById(Long id)
    {
        return mlAccountMessageMapper.deleteMlAccountMessageById(id);
    }
}
